home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 83 / MOBICLIC 83.ISO / mac / pour MacOsX / QuickTime6_MacOsX / QuickTime651.pkg / Contents / Resources / cleancruft < prev    next >
Text File  |  2003-11-13  |  2KB  |  58 lines

  1. #!/bin/sh
  2. #
  3. #   - Removes old CFM QTPowerPlug
  4. #   - Removes old QTTuneUp/Smeagol extension
  5. #   - Removes any old Clamato(5.0.4) quicktime pieces
  6. #   - Removes any old SU1(5.0.5) quicktime pieces
  7. #   - Removes any old QuickTime.framework/Info-macos.plist
  8. #   - Remove the QuickTime Player Channels file
  9. #   - Remove the old QuickTime Player Help folder
  10. #   - Remove the old QuickTimeUpdateHelper
  11.  
  12. RM="/bin/rm -rf"
  13. QUICKTIMECOMPONENTSDIR=/System/Library/QuickTime
  14.  
  15. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimePowerPlug.component" ]; then
  16.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimePowerPlug.component"
  17. fi
  18.  
  19. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeTuneUp.component" ]; then
  20.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeTuneUp.component"
  21. fi
  22.  
  23. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component" ]; then
  24.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component"
  25. fi
  26.  
  27. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component" ]; then
  28.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component"
  29. fi
  30.  
  31. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component" ]; then
  32.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component"
  33. fi
  34.  
  35. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDataHandlerUpdate.component" ]; then
  36.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDataHandlerUpdate.component"
  37. fi
  38.  
  39. # Remove the old Info-macos.plist file
  40. if [ -f "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist" ]; then
  41.     $RM "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist"
  42. fi
  43.  
  44. # Remove the QuickTime Player channels file
  45. if [ -f "$3/$QUICKTIMECOMPONENTSDIR/QuickTime Channels" ]; then
  46.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTime Channels"
  47. fi
  48.  
  49. # Remove the old QuickTime Player Help folder
  50. if [ -d "$3/Library/Documentation/Help/QuickTime.help" ]; then
  51.     $RM "$3/Library/Documentation/Help/QuickTime.help"
  52. fi  
  53.  
  54. # Remove the QuickTimeUpdateHelper (never used on X, and only contained a 'vers' resource)
  55. if [ -f "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeUpdateHelper" ]; then
  56.     $RM "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeUpdateHelper"
  57. fi
  58.